<script setup lang="ts">
import LookVcircle3DetailModule from './LookVcircle3DetailModule.vue'
import { ContentDetailWrap } from '@/components/ContentDetailWrap'
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { useRouter, useRoute } from 'vue-router'
import { TableData } from '@/api/table/types'
import { getVcirceDetail } from '@/views/vCircle/table'

const { push } = useRouter()

const { query } = useRoute()

const { t } = useI18n()

const currentRow = ref<Nullable<TableData>>(null)

const getTableDet = async () => {
  const res = await getVcirceDetail(query.microcircleId as number)
  if (res) {
    console.log("res+++"+res)
    currentRow.value = res.data
  }
}

getTableDet()
</script>

<template>
<!--    @back 返回事件-->
  <ContentDetailWrap :title="详情" @back="push('/external-link/lookmicrosphere')">
    <LookVcircle3DetailModule :current-row="currentRow" />
  </ContentDetailWrap>
</template>
